home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000212_mackay@cs.washington.edu_Tue Feb 1 08:48:58 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  4KB

  1. Received: from june.cs.washington.edu by cs.umb.edu with SMTP id AA01158
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Tue, 1 Feb 1994 22:19:20 -0500
  3. Return-Path: <mackay>
  4. Received: from localhost (mackay@localhost) by june.cs.washington.edu (8.6.4/7.1ju+) id QAA10577; Tue, 1 Feb 1994 16:48:58 -0800
  5. Date: Tue, 1 Feb 1994 16:48:58 -0800
  6. From: mackay@cs.washington.edu (Pierre MacKay)
  7. Message-Id: <199402020048.QAA10577@june.cs.washington.edu>
  8. To: karney@princeton.edu
  9. Cc: tex-k@cs.umb.edu
  10. In-Reply-To: Charles Karney's message of Tue, 1 Feb 1994 13:52:06 -0500 <199402011852.NAA29115@suntsu.pppl.gov>
  11. Subject: Re: PK files for different modes at same DPI
  12.  
  13. In most cases whis will be no trouble.  If you have several
  14. print-engines to feed, they can be addressed through a script
  15. that sets one or another penultimate twig to the tree leading into
  16. pk files.  
  17.  
  18. One case that is more difficult is display fonts for xdvi.
  19. Here I use write-white compilations for *.360pk and down
  20. but revert to write-black for the larger sizes where the
  21. chance of a single-pixel line vanishes.  It sliightly falsifies
  22. the apparent contrast among sizes, but not seriously.
  23.  
  24. THe only way to handly this is to make sure that
  25. xdvi gets at any needed ww fonts first, by linking them
  26. into a flat directory that is searched first.  Then it will
  27. only go on to look for other write black fonts at nnnPK sizes
  28. which never appear in the write-white directory.  Such flat
  29. directory links will be necessary whenever there is an attempt to
  30. save space by letting two engines use the same compilation for
  31. large sizes while using separate compilations for small sizes (a not
  32. uncommon arrangement).
  33.  
  34. #!/bin/sh
  35. #
  36. # This script provides for flat directories organized by function
  37. # as opposed to the organization of fonts by foundry and typeface
  38. # made possible by Karl Berry's kpathsearch.  It can also achieve
  39. # a speed-up in the execution of programs like dvips and xdvi
  40. # which depend on kpathsearch.  This is often needed with
  41. # old, slow processors or old, slow disk controllers.
  42. #   A typical directory tree is: 
  43. #
  44. # ${TEXFONTS}/
  45. #       00PK/
  46. #       00TFM/
  47. #       00VF/
  48. #       00XDVI/
  49. #       adobe/
  50. #           utopia/
  51. #               afm/
  52. #               ps-to-pk/
  53. #               src/
  54. #               tfm/
  55. #               type1/
  56. #               vf/
  57. #       public/
  58. #           cm/
  59. #               afm/
  60. #               cx/
  61. #               ricoh/
  62. #               src/
  63. #               tfm/
  64. #               vf/
  65. #   
  66. #
  67. # The 00[TFM,VF,XDVI] directories are flat or "accelerator"
  68. # directories where links to files that are in extremely 
  69. # frequent use are placed.
  70. # If you are using drivers that can only handle flat directories
  71. # the 00PK directory will be where MakeTeXPK stores its
  72. # output.  It must therefore be in both XDVI and DVIPS paths,
  73. # and needs to be writable by anyone who will use MakeTeXPK.
  74. # It can also be used as an "accelerator" directory for
  75. # links to frequently used PK files.  But don't store write-white
  76. # fonts there unless you are unlucky enough to have a write-white
  77. # printer.  
  78. #
  79. # If you want to move the actual font files made
  80. # by MakeTeXPK into the foundry-based tree, select them
  81. # with one or more of the optional predicates in a find command
  82. #
  83. PATH=$1
  84. DIR=$2
  85. FILEXT=$3
  86. WHERE=$4
  87. #
  88. if test "$#" != 4 ; 
  89. then
  90.   echo " usage: font-link <branch> <leaf> <characteristic> <00dir>";
  91.   echo "        Run this in the common parent TEXFONTS directory";
  92.   echo "        Where the directories [ 00*] are located ";
  93.   echo "    <branch> = Relative path to bitmaps.  Start with ./";
  94.   echo "        The closest common path to all desired fonts ";
  95.   echo "    <leaf> = [ tfm vf type1 cx ricoh ] or similar";
  96.   echo "        Where the metrics or glyphs are in each branch ";
  97.   echo "    <characteristic> = [ tfm vf pfa pk ] or similar";
  98.   echo "    <00dir> = one of [ 00TFM 00VF 00PK 00XDVI ]";
  99.   exit 1 ;
  100. fi
  101.  
  102. #
  103. for i in `/usr/bin/find ${PATH} -name ${DIR} -a -type d -print` ;
  104. do
  105.   for j in `/usr/bin/find ${i} -name "*.*${FILEXT}" -print` ;
  106.   do
  107.     FONT=`/usr/bin/basename $j`
  108.     echo $j
  109.     (cd ${WHERE} ; /usr/bin/rm -f ${FONT} ; /usr/bin/ln -s .${j} ./${FONT} )
  110.   done ;
  111. done